//
//  HomeTypeCollectionViewCell.m
//  LianShangBao
//
//  Created by 主事丫环HU on 2020/8/31.
//  Copyright © 2020 主事丫环. All rights reserved.
//

#import "HomeTypeCollectionViewCell.h"
@interface HomeTypeCollectionViewCell()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UIImageView *lineImageView;

@end
@implementation HomeTypeCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)setModel:(TypeListModel *)model {
    self.nameLabel.text = model.name;
    if (model.isSelected == YES) {
        self.lineImageView.hidden = NO;
        self.nameLabel.textColor = [UIColor colorWithHexString:@"#333333"];
        self.nameLabel.font = [UIFont boldSystemFontOfSize:17];
    } else {
        self.lineImageView.hidden = YES;
        self.nameLabel.textColor = [UIColor colorWithHexString:@"#666666"];
        self.nameLabel.font = [UIFont systemFontOfSize:16];
    }
}
@end
